import json
import requests
url = "https://dashscope.aliyuncs.com/api/v1/apps"
app_id = "efbd83946de041b6aaa8e65623788fa7"
url = url + "/" + app_id + "/completion"
data = {
    "input":{"prompt":"上门率"},
}

headers = {
    "Authorization": "Bearer sk-d672cfc8c54847ce9b3e13879862de8c",
    "Content-Type": "application/json"
}

data = requests.post(url, headers=headers, data=json.dumps(data,ensure_ascii=False))
print(data.text)